package util

import (
	"strings"
)

func SplitKeyValue(data, seq string) (key, value string) {
	if data == "" {
		return "", ""
	}
	index := strings.Index(data, seq)
	if index > 0 {
		return strings.TrimSpace(data[:index]), strings.TrimSpace(data[index+1:])
	}
	return "", ""
}
